package com.jiazhong.schedule.service.impl;

import com.jiazhong.schedule.dao.BaseDao;
import com.jiazhong.schedule.dao.SysUserDao;
import com.jiazhong.schedule.dao.impl.SysUserImpl;
import com.jiazhong.schedule.pojo.SysUser;
import com.jiazhong.schedule.service.SysUserService;

public class SysUserServiceImpl implements SysUserService {
    @Override
    public int addSysUser(SysUser sysUser) {
        SysUserDao sysUserDao=new SysUserImpl();
        return sysUserDao.addSysUser(sysUser);
    }

    @Override
    public SysUser login(String name) {
         SysUserDao sysUserDao=new SysUserImpl();
        return sysUserDao.login(name);
    }


}
